<extend name="Public/base" />
<block name="style">
    <style type="text/css">
    </style>
</block>
<block name="body">
    <form action="{:U('Auth/auth_group_index_list')}" method="post" id="searchForm">
        <include file="Public:artdialog" />
        <div class="row">
            <div class="col-md-12">
                <div class="block-web">
                    <div class="header">
                        <h3 class="content-header">权限组列表</h3>
                    </div>
                    <div class="row">
                        <div class="col-md-12" style="text-align: right;">

                            <table style="float: right; width: 100%; margin-top: 10px;">
                                <tr>
                                    <td style="text-align: left; width: 40%;"><a class="btn btn-primary" href="javascript:;" onclick="_es_openDilogMiddle('{:U('Auth/auth_group_add',array('is_add'=>0))}','新增权限组','xinzengquanxianzu')">新增权限组</a></td>
                                    <td style="width: 60%;text-align: right;">权限组名称：<input type="text" name="title">&nbsp;&nbsp;<a class="btn btn-primary" onclick=" goSearch('#searchForm','order_list_item_content')" href="javascript:;">搜索</a></td>
                                </tr>
                            </table>
                        </div>

                    </div>
                    <div class="porlets-content">
                        <div class="table-responsive">
                            <div id="order_list_item_content">
                                <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                    <img src="/Public/Admin/images/load3.gif" />
                                    加载中...
                                </div>
                            </div>
                        </div><!--/table-responsive-->
                    </div><!--/porlets-content-->
                </div><!--/block-web-->
            </div><!--/col-md-12-->
        </div>
        <div class="footer" >
            <button class="btn btn-default bt_close" type="button" onclick="art.dialog.open.api.close();" >关闭</button>
        </div>
    </form>
</block>
<block name="script">
<script type="text/javascript">
    $(function(){
        goSearch("#searchForm","order_list_item_content");
    });

    function load(){
        goSearch("#searchForm","order_list_item_content");
    }

    function delete_ok(id){
        art.dialog({
            content: "是否确认删除，如果是会自动删除关联数据",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="{:U('Auth/auth_group_delete')}";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){
                        goSearch("#searchForm","order_list_item_content");
                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }
</script>
</block>